package com.dingup.provider.mapper;

import com.dingup.api.model.sys.SysUserDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysUserDeptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUserDept record);

    int insertSelective(SysUserDept record);

    SysUserDept selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUserDept record);

    int updateByPrimaryKey(SysUserDept record);

    void truncateTable();

    int deleteByUserId(String userId);

    int updateIfDeleteByUserId(@Param("userId") String userId, @Param("ifDelete")Boolean ifDelete);
}